package com.three.productList.feign;

import com.three.core.entity.FrontUser;
import com.three.core.entity.UserIntegral;
import com.three.core.vo.R;
import com.three.productList.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ：li
 * @date ：Created in 2025/3/18 018 10:57
 * @description：
 * @modified By：
 * @version:
 */
@FeignClient(value = "car-wash-vip",fallbackFactory = FrontUserVipFallbackFactory.class,configuration = FeignConfig.class)
public interface FrontUserVipFeign {
    @GetMapping("/vip/customer/getUserInfo")
    public R<FrontUser> getUserInfo();
    //查询积分
    @PostMapping("/vip/userIntegral/selectIntegralByUserId")
    public R<UserIntegral> selectIntegralByUserId(@RequestParam Integer id) ;
    //减积分
    //前端支付时做了判断，这里暂时不用判断
//    @PostMapping("/vip/userIntegral/updateIntegral")
//    public R<UserIntegral> updateIntegral(@RequestParam Integer id,@RequestParam Integer integral) ;
}
